//
//  DouSecondCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/3/4.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "DouSecondCell.h"

@implementation DouSecondCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _firstLab = [[UILabel alloc] init];
        _firstLab.textColor = [UIColor blackColor];
        //_firstLab.text = @"身份证地 :";
        _firstLab.font = [UIFont systemFontOfSize:16];
        [self addSubview:_firstLab];
        [_firstLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(100, 20));
            make.left.equalTo(self.mas_left).offset(15);
            make.top.equalTo(self.mas_top).offset(12);
        }];
        
        
        
        
        _secondLab = [[UILabel alloc] init];
        _secondLab.textColor = [UIColor blackColor];
       // _secondLab.text = @"4199389479";
        _secondLab.font = [UIFont systemFontOfSize:16];
        [self addSubview:_secondLab];
        [_secondLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(150, 20));
            make.left.equalTo(_firstLab.mas_right).offset(2);
            make.top.equalTo(self.mas_top).offset(12);
        }];
        
        _xinBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        //_xinBtn.backgroundColor = [UIColor orangeColor];
        _xinBtn.layer.cornerRadius = 15;
         [_xinBtn setImage:[UIImage imageNamed:@"xinxi"] forState:0];
        [_xinBtn addTarget:self action:@selector(xinXiBtnClick:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:_xinBtn];
        [_xinBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(30);
            make.top.equalTo(self.mas_top).offset(5);
            make.right.equalTo(self.mas_right).offset(-70);
        }];
        
        _dianBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        //_dianBtn.backgroundColor = [UIColor orangeColor];
        _dianBtn.layer.cornerRadius = 15;
        [_dianBtn setImage:[UIImage imageNamed:@"dianhuatubiao"] forState:0];
        [_dianBtn addTarget:self action:@selector(dianHuaBtnClick:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:_dianBtn];
        [_dianBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(30);
            make.top.equalTo(self.mas_top).offset(5);
            make.right.equalTo(self.mas_right).offset(-20);
        }];
    }
    return self;
}

-(void)xinXiBtnClick:(UIButton *)btn
{
    
}
-(void)dianHuaBtnClick:(UIButton *)btn
{
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
